﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Forms;

namespace QLNH_SERVER
{
    public static class Program
    {
        public static MainForm mainForm;

        [STAThread]
        static void Main()
        {
            bool ownMutex;

            using (Mutex mutex = new Mutex(true, "SERVER", out ownMutex))
            {
                if (ownMutex)
                {
                    Application.EnableVisualStyles();
                    Application.SetCompatibleTextRenderingDefault(false);
                    mainForm = new MainForm();
                    Application.Run(mainForm);
                }
                else
                {
                    Application.Exit();
                }
            }
        }
    }
}
